include(FindRplcModules)

add_executable(rplc
        main.cpp
        src/Config.cpp
        src/Validator.cpp
        src/Generator.cpp
        src/FileWriter.cpp
        src/CLI.cpp
)

target_include_directories(rplc PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(rplc PRIVATE CLI11::CLI11 fmt::fmt nlohmann_json::nlohmann_json)
target_compile_definitions(rplc PRIVATE RPLC_VERSION="${RPLC_VERSION}")

# Install the rplc executable
install(TARGETS rplc
        RUNTIME DESTINATION bin
)
